<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php
        echo $this->jQuery()
                  ->setVersion('1.5.1')
                  ->setUiVersion('1.8.11')
                  ->enable()
                 ->uiEnable();
        ?>
        <?php echo $this->headMeta() ?>
        <link href="http://fonts.googleapis.com/css?family=Open+Sans&subset=cyrillic,latin" rel="stylesheet" type="text/css" />
        <?php echo $this->headTitle() ?>
        <?php echo $this->headLink()->appendStylesheet('/style.css') ?>
        <?php echo $this->headLink()->appendStylesheet('/css/custom-theme/jquery-ui-1.8.22.custom.css') ?>
    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <div id="logo">
                    <h1>
                        <a href="<?php echo $this->url(); ?>"><?php echo $this->translate('Application name'); ?></a>
                    </h1>
                </div>
                <div class="language-container" style="position:absolute;left:0px;top:132px;">
                    <?php echo $this->polyglot(); ?>
                </div>
                <div id="menu">
                    <?php echo $this->navigation()->menu() ?>
                    <br class="clearfix" />
                </div>
            </div>
            <div id="inner">
                <?php echo $this->flashMessages(); ?>
                <?php echo $this->layout()->content ?>
            </div>
            <div id="page-bottom">
                <div id="page-bottom-content">
                    <table width="">
                        <tr>
                            <td valign="top" style="width:200px;">
                                <h4><?php echo $this->translate('foot_submenu_group_title_account'); ?></h4>
                                <ul>
                                    <?php if (Application_Model_Front_User::isLoggedIn()) : ?>
                                    <li>
                                        <a href="/account/my"><?php echo $this->translate('foot_submenu_link_title_my_profile'); ?></a>
                                    </li>
                                    <li>
                                        <a href="/account/logout"><?php echo $this->translate('foot_submenu_link_title_logout'); ?></a>
                                    </li>
                                    <?php else : ?>
                                    <li>
                                        <a href="/account/login"><?php echo $this->translate('foot_submenu_link_title_log_in'); ?></a>
                                    </li>
                                    <li>
                                        <a href="/account/create"><?php echo $this->translate('foot_submenu_link_title_register'); ?></a>
                                    </li>
                                    <li>
                                        <a href="/account/forgot"><?php echo $this->translate('foot_submenu_link_title_reset_password'); ?></a>
                                    </li>
                                    <?php endif; ?>
                                </ul>
                            </td>
                            <td valign="top" style="width:200px;">
                                <h4><?php echo $this->translate('foot_submenu_group_title_info'); ?></h4>
                                <ul>
                                    <li>
                                        <a href="/about.aspx"><?php echo $this->translate('foot_submenu_link_title_about'); ?></a>
                                    </li>
                                    <li>
                                        <a href="/contact"><?php echo $this->translate('foot_submenu_link_title_contact'); ?></a>
                                    </li>
                                    <li>
                                        <a href="/"><?php echo $this->translate('foot_submenu_link_title_index'); ?></a>
                                    </li>
                                </ul>
                            </td>
                            <?php if ($this->block('foot_title') && $this->block('foot_content')) : ?>
                            <td valign="top" style="width:200px;">
                                <h4><?php echo $this->block('foot_title'); ?></h4>
                                <ul>
                                    <li>
                                        <?php echo $this->block('foot_content'); ?>
                                    </li>
                                </ul>
                            </td>
                            <?php endif; ?>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div id="footer">
            &copy; <?php echo date('Y'); ?> <?php echo $this->translate('Application name'); ?> | <?php echo $this->translate('Designed by'); ?> <a href="mailto:bgdn2007@ukr.net"><?php echo $this->translate('Application author'); ?></a>
        </div>
        <?php echo $this->jQuery()->setRenderMode(ZendX_JQuery::RENDER_JAVASCRIPT | ZendX_JQuery::RENDER_JQUERY_ON_LOAD); ?>
    </body>
</html>